# import matplotlib.pyplot as plt
# import numpy as np
# from matplotlib.animation import FuncAnimation
#
# # 生成爱心曲线的数据
# t = np.linspace(0, 2 * np.pi, 1000)
# x = 16 * np.sin(t) ** 3
# y = 13 * np.cos(t) - 5 * np.cos(2 * t) - 2 * np.cos(3 * t) - np.cos(4 * t)
#
# # 创建图形和坐标轴对象
# fig, ax = plt.subplots()
# ax.set_aspect('equal')
# ax.axis('off')
#
# # 初始化绘制爱心的线条对象
# line, = ax.plot([], [], color='red')
#
#
# # 初始化函数，用于设置动画的初始状态
# def init():
# line.set_data([], [])
# return line,
#
#
# # 更新函数，用于逐帧更新动画内容
# def update(frame):
# line.set_data(x[:frame], y[:frame])
# return line,
#
#
# # 创建动画对象
# ani = FuncAnimation(fig, update, frames=len(x), init_func=init, interval=10, blit=True)
#
# # 显示动画
# plt.show()



# 2024年10月31号
# while中使用break跳出循环，break是跳出整体循环
# i=0
# while i <=5:
#     i += 1
#     print('星期为：',i)
#     if i ==3:
#         break


#
# i=1
# while i <= 5:
#     if i == 3:
#         break
#     print('星期为：',i)
#     i += 1


# for i in range(1,6):
#     print('星期为：'，i)
#     if i ==3:
#         break
#
#
#
# for i in range(1,6):
#     if i == 3:
#         break
#     print('星期为：',i)
#
#
#
# i=0
# while i<5:
#     i +=1
#     if i == 4:
#         continue
#     print('星期为：',i)
#
# for i in range(1,6):
#     if i == 4:
#         continue
#     print('星期为：',i)



# i = 10
# if i >1:
#     pass
# print(i)
